<a href='https://github.com/angular/angular.js/edit/v1.6.x/src/ng/q.js?message=docs($qProvider)%3A%20describe%20your%20change...#L220' class='improve-docs btn btn-primary'><i class="glyphicon glyphicon-edit">&nbsp;</i>Improve this Doc</a>



<a href='https://github.com/angular/angular.js/tree/v1.6.6/src/ng/q.js#L220' class='view-source pull-right btn btn-primary'>
  <i class="glyphicon glyphicon-zoom-in">&nbsp;</i>View Source
</a>


<header class="api-profile-header">
  <h1 class="api-profile-header-heading">$qProvider</h1>
  <ol class="api-profile-header-structure naked-list step-list">
    
  <li>
    <a href="api/ng/service/$q">- $q</a>
  </li>

    <li>
      - provider in module <a href="api/ng">ng</a>
    </li>
  </ol>
</header>





<div class="api-profile-description">
  
</div>




<div>
  

  

  

  
<h2>Methods</h2>
<ul class="methods">
  <li id="errorOnUnhandledRejections">
    <h3><p><code>errorOnUnhandledRejections([value]);</code></p>

</h3>
    <div><p>Retrieves or overrides whether to generate an error when a rejected promise is not handled.
This feature is enabled by default.</p>
</div>

    

    
    <h4>Parameters</h4>
    
<table class="variables-matrix input-arguments">
  <thead>
    <tr>
      <th>Param</th>
      <th>Type</th>
      <th>Details</th>
    </tr>
  </thead>
  <tbody>
    
    <tr>
      <td>
        value
        
        <div><em>(optional)</em></div>
      </td>
      <td>
        <a href="" class="label type-hint type-hint-boolean">boolean</a>
      </td>
      <td>
        <p>Whether to generate an error when a rejected promise is not handled.</p>

        
      </td>
    </tr>
    
  </tbody>
</table>

    

    

    
    <h4>Returns</h4>
    <table class="variables-matrix return-arguments">
  <tr>
    <td><a href="" class="label type-hint type-hint-boolean">boolean</a><a href="" class="label type-hint type-hint-ng">ng.$qProvider</a></td>
    <td><p>Current value when called without a new value or self for
   chaining otherwise.</p>
</td>
  </tr>
</table>
    </li>
  </ul>
  
  



  
</div>


